<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=no">
</head>
<body>
<div class="content_body">
    
</div>
<script>
    let arr=[2,39,1,66,44,100,300];
    arr.sort( (n1,n2) => {   //sort：数组从小到大排列
     return n1-n2;
    });
    console.log(arr);
</script>

</body>
</html>